package com.zjdiepu.www.model.cw.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;

import com.zjdiepu.www.base.core.BaseModel;

/**
 * 退提车款<br/>
 * @author xiongxiaotun<br/>
 * @time 2017年05月15日 11时14分<br/>
 * @since 1.0<br/>
 */
@ApiModel(value="CwRefundCar", description="退提车款", parent = BaseModel.class)
public class CwRefundCar extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	/**
	 * @author xiongxiaotun <br/>
	 * @Title: isCompleted  <br/>
	 * @Description: 是否完成资料录入 <br/>
	 * @return
	 * @version V1.0  <br/>
	 */
	public boolean isCompleted(){
		if(!StringUtils.isNoneBlank(busiId, remitId, cusId, bankRemit, nameAuditor)) {//不含空
			return false;
		}
		
		if(!ObjectUtils.allNotNull(timeArrive, timeAudit)) {
			return false;
		}
		return true;
	}
	/**
	 * 业务ID
	 */
	@ApiModelProperty(name="busiId",required=false,value="业务ID",example="业务ID")
	private String busiId;
	
	/**
	 * 打款ID
	 */
	@ApiModelProperty(name="remitId",required=false,value="打款ID",example="打款ID")
	private String remitId;
	
	/**
	 * 客户ID
	 */
	@ApiModelProperty(name="cusId",required=false,value="客户ID",example="客户ID")
	private String cusId;
	
	/**
	 * 退款银行
	 */
	@ApiModelProperty(name="bankRemit",required=false,value="退款银行",example="退款银行")
	private String bankRemit;
	
	/**
	 * 到账时间
	 */
	@ApiModelProperty(name="timeArrive",required=false,value="到账时间",example="2017-04-23 14:22:43")
	private Date timeArrive;
	
	/**
	 * 财务审核人
	 */
	@ApiModelProperty(name="nameAuditor",required=false,value="财务审核人",example="财务审核人")
	private String nameAuditor;
	
	/**
	 * 财务审核时间
	 */
	@ApiModelProperty(name="timeAudit",required=false,value="财务审核时间",example="2017-04-23 14:22:43")
	private Date timeAudit;
	
	/**
	 * 退款单位
	 */
	@ApiModelProperty(name="companyRefund",required=false,value="退款单位",example="退款单位")
	private String companyRefund;
	
	/**
	 * 退款账号
	 */
	@ApiModelProperty(name="cadnoRefund",required=false,value="退款账号",example="退款账号")
	private String cadnoRefund;
	
	/**
	 * 数据类型:1.系统生成 2.导入数据
	 */
	@ApiModelProperty(name="typeData",required=false,value="数据类型:1.系统生成 2.导入数据",example="0")
	private Integer typeData;
	
	public String getBusiId(){
		return this.busiId;
	}
	
	public void setBusiId(String busiId){
		this.busiId = busiId;
	}

	public String getRemitId(){
		return this.remitId;
	}
	
	public void setRemitId(String remitId){
		this.remitId = remitId;
	}

	public String getCusId(){
		return this.cusId;
	}
	
	public void setCusId(String cusId){
		this.cusId = cusId;
	}

	public String getBankRemit(){
		return this.bankRemit;
	}
	
	public void setBankRemit(String bankRemit){
		this.bankRemit = bankRemit;
	}

	public Date getTimeArrive(){
		return this.timeArrive;
	}
	
	public void setTimeArrive(Date timeArrive){
		this.timeArrive = timeArrive;
	}

	public String getNameAuditor(){
		return this.nameAuditor;
	}
	
	public void setNameAuditor(String nameAuditor){
		this.nameAuditor = nameAuditor;
	}

	public Date getTimeAudit(){
		return this.timeAudit;
	}
	
	public void setTimeAudit(Date timeAudit){
		this.timeAudit = timeAudit;
	}

	public String getCompanyRefund(){
		return this.companyRefund;
	}
	
	public void setCompanyRefund(String companyRefund){
		this.companyRefund = companyRefund;
	}

	public String getCadnoRefund(){
		return this.cadnoRefund;
	}
	
	public void setCadnoRefund(String cadnoRefund){
		this.cadnoRefund = cadnoRefund;
	}

	public Integer getTypeData(){
		return this.typeData;
	}
	
	public void setTypeData(Integer typeData){
		this.typeData = typeData;
	}

	@Override
	public String toString() {
		return super.toString() + "CwRefundCar [busiId = " + busiId + ", remitId = " + remitId + ", cusId = " + cusId + ", bankRemit = " + bankRemit + ", timeArrive = " + timeArrive + ", "
			+ "nameAuditor = " + nameAuditor + ", timeAudit = " + timeAudit + ", companyRefund = " + companyRefund + ", cadnoRefund = " + cadnoRefund + ", typeData = " + typeData + "]";
	}
    
}